package com.cqw.commontest.designmode.abstractfactory;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-09-24 15:55
 * @Description:
 */
public class MagicFactory extends AbstractFactory {

    @Override
    Food createFood() {
        return new MushRoom();
    }

    @Override
    Weapon createWeapon() {
        return new MagicStick();
    }

    @Override
    Vehicle createVehicle() {
        return new Broom();
    }
}
